import request from '@/utils/request'

export function selectAllRole(data) {
  return request({
    url: '/role/all/',
    method: 'post',
    data: data
  })
}

export function addRole(data) {
  return request({
    url: '/role/add',
    method: 'post',
    data: data
  })
}

export function updateRole(data) {
  return request({
    url: '/role/update',
    method: 'post',
    data: data
  })
}

export function deleteRole(data) {
  return request({
    url: '/role/delete',
    method: 'post',
    data: data
  })
}